package com.aiks.single.singlemavenproject.common.exception;

/**
 * api层面异常消息.
 *
 * @author <a href="mailto:aiks_yuan@163.com">yuanzhen</a>
 * @date 2019-07-02 18:50
 * @since 1.0.0
 **/
public class ApiException extends BaseException {
    
    /**
     * exception msg.
     *
     * @param errorKey key
     * @param values values
     */
    public ApiException(final String errorKey, final Object... values) {
        super(errorKey, values);
    }
    
    /**
     * exception msg.
     *
     * @param errorKey key
     */
    public ApiException(final String errorKey) {
        this(errorKey, new Object[0]);
    }
    
    /**
     * exception msg.
     *
     * @param cause throwable
     * @param errorKey key
     * @param values values
     */
    public ApiException(final Throwable cause, final String errorKey, final Object... values) {
        super(cause, errorKey, values);
    }
    
    /**
     * exception msg.
     *
     * @param cause throwable
     * @param errorKey key
     */
    public ApiException(final Throwable cause, final String errorKey) {
        this(cause, errorKey, new Object[0]);
    }
    
}
